Package com.netscape.cms.evaluators
Class UserAccessEvaluator
java.lang.Object
com.netscape.certsrv.evaluators.AccessEvaluator
com.netscape.cms.evaluators.UserAccessEvaluator
A class represents a user acls evaluator.
-
Field Summary
FieldsFields inherited from class com.netscape.certsrv.evaluators.AccessEvaluator
description, engine, type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.netscape.certsrv.evaluators.AccessEvaluator
getCMSEngine, getDescription, getType, setCMSEngine
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
UserAccessEvaluator
public UserAccessEvaluator()Class constructor.
-
-
Method Details
-
init
public void init()initialization. nothing for now.- Specified by:
init
in classAccessEvaluator
-
getSupportedOperators
Description copied from class:AccessEvaluator
Get the supported operators for this evaluator- Specified by:
getSupportedOperators
in classAccessEvaluator
- Returns:
- Supported operators in string array
-
evaluate
Evaluates the user in AuthToken to see if it's equal to value- Specified by:
evaluate
in classAccessEvaluator
- Parameters:
authToken
- AuthToken from authenticationtype
- must be "at_user"op
- must be "="value
- the user id- Returns:
- true if AuthToken uid is same as value, false otherwise
-
evaluate
Evaluates the user in session context to see if it's equal to value- Specified by:
evaluate
in classAccessEvaluator
- Parameters:
type
- must be "user"op
- must be "="value
- the user id- Returns:
- true if SessionContext uid is same as value, false otherwise
-